package com.jwt.token.filter;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

public class SessionFilter2 implements Filter {


	@Override
	public void init(FilterConfig filterConfig) throws ServletException {
		System.out.println("第2个filter初始化");
	}

	@Override
	public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
		System.out.println("进入第2个filter");
		filterChain.doFilter(servletRequest,servletResponse);
		return;
	}

	@Override
	public void destroy() {
		System.out.println("第2个filter销毁");
	}
}
